<<<<<<< HEAD
import { Item } from 'ant-design-vue/lib/menu';
import Mock from 'mockjs'
import { param2Obj } from '../../utils/decompose'
interface HomeList {
    id: string,
    key: string;
    name: number,
    block: any,
    type: string,
    XinKainame: string,
    number: string,
    consume: string,
    balance: string,
    save: string,
    score: string,
    Vipstate: any,
    over: string,
}
let List: HomeList[] = []
for (let i = 0; i < 10; i++) {
    let id = Mock.mock('@guid')
    var index = List.length+1
    List.push({
        id: id,
        key: id,
        name: index,
        block: Mock.mock('@integer(0, 1)'),
        type: Mock.mock(/^\d+$/),
        XinKainame: Mock.mock(/^(?:[\u4e00-\u9fa5·]{2,16})$/),
        save: Mock.mock('@integer(0, 5)'),
        score: Mock.mock(),
        Vipstate: Mock.mock('@integer(0, 1)'),
        over: Mock.mock('@date("yyyy-MM-dd")'),
    })
}
export default {
    HomeList: (config: any) => {
        console.log(config)
       /*  let { number, begin, XinKainame, page, pagesize } = param2Obj(config.url)
        const newList = List.filter(item => {
            return item.XinKainame.indexOf(XinKainame) != -1
        })
        const newList1 = newList.filter((item: any) => {
            return item.begin.indexOf(begin) != -1
        })
        const newList2 = newList1.filter((item, index) => {
            return (page - 1) * pagesize <= index && index < page * pagesize
        }) */
        return {
            code: 200,
            msg: "数据成功了",
            data: List,
            
            /* total: List.length */
        }
    },
}
=======
import Mock from 'mockjs'

Mock.setup({
    timeout: '300-400'
})

Mock.mock(/\/getproList/, 'get', {
    code: 200,
    msg: '请求成功',
    data: {
        list: [1, 2, 3, 4]
    }
})
>>>>>>> beb584824be5c8f33b1ca3570e5e5af46136ffeb
